# import the webapp module
from google.appengine.ext import webapp
# get registry, we need it to register our filter later .
register = webapp.template.create_template_register() 
from models.Authentication import *

class UserInfo(webapp.RequestHandler):
    def get(self):
        ourUser = get_current_user(self.request)
        if not ourUser:
            return self.redirect("/login")
        path = os.path.join(os.path.dirname(__file__),"../templates/UserInfo.html")
        self.response.out.write(template.render(path,{"user":ourUser}))


